
import service from '@/utils/request'

const ServerTemplateApi = {
  listServerTemplate:function(data){
    return service.get('serverModel/page', {params:data})
  },
  listModel:function(data){
    return service.get('serverModel/listModel', {params:data})
  },
  addServerTemplate:function(data){
      return service.post('serverModel', data)
  },
  editServerTemplate:function(data){
      return service.put('serverModel', data)
  },
  deleteServerTemplate:function(data){
      return service.put('serverModel/delete', data)
  },
  getServerTemplateInfo(data){
      return service.get('serverModel', {params:data})
  },
  getlistServerTemplateInfo:function(data){
    return service.get('serverModel/listIdName', {params:data})
  },
  getServerTemplateBtn:function(data){
    return service.get('serverModel/listModelServerBtn', {params:data})
  }
}

export default ServerTemplateApi
